﻿using MediatR;
using SmartTracking.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SmartTracking.API.Write.Application.Commands.User_command
{
    public class UpdateUserCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserNo { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string UserNickName { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool UserSex { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string UserPhone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string UserEmail { get; set; }
        /// <summary>
        /// 所在地
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 证件类型
        /// </summary>
        public int DocumentTypeId { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        public int UserStatus { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public List<int> RoleId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        public string? CreateUserNo { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 更新用户
        /// </summary>
        public string? UpdateUserNo { get; set; }
    }
}
